# demo03_str.py
name, age = "bb", 46
# bb is 46 years old
str01 = name + " is " + str(age) + " years old"  # 字符串的拼接
print(str01)
# 字符串的格式化(挖坑填坑)
# 1. %    %s: 是一个字符串类型的坑
str02 = "%s is %s years old %s" % (name, age, [1, 2])
# age -> str(age)   [1, 2] -> str([1, 2])
print(str02)
# 2. format
str03 = "{} is {} years old".format(name, age)
print(str03)
